package DAITINGTING.ball;

public class Ball {
    String ballname;
    String balldaxiao;
    String ballcaizhi;
    String ballzhongliang;
    String ballrenqun;
    String kongqi="空气";
    String xingzhuang="圆";


    public String getBallname() {
        return ballname;
    }

    public void setBallname(String ballname) {
        this.ballname = ballname;
    }

    public String getBalldaxiao() {
        return balldaxiao;
    }

    public void setBalldaxiao(String balldaxiao) {
        this.balldaxiao = balldaxiao;
    }

    public String getBallcaizhi() {
        return ballcaizhi;
    }

    public void setBallcaizhi(String ballcaizhi) {
        this.ballcaizhi = ballcaizhi;
    }

    public String getBallzhongliang() {
        return ballzhongliang;
    }

    public void setBallzhongliang(String ballzhongliang) {
        this.ballzhongliang = ballzhongliang;
    }

    public String getBallrenqun() {
        return ballrenqun;
    }

    public void setBallrenqun(String ballrenqun) {
        this.ballrenqun = ballrenqun;
    }

    String selfIntroduction(){
        return "我的名字是"+ballname+",我的直径是"+balldaxiao+",我的材料是"+ballcaizhi+",我的重量大概是"+ballzhongliang+",我适合"+ballrenqun;
    }
    Ball(String qiuming, String dx, String cz,String zl,String rq) {
        ballname=qiuming;
        balldaxiao=dx;
        ballcaizhi=cz;
        ballzhongliang=zl;
        ballrenqun=rq;

    }
}
